Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Error in count condition of HTTP-Api-Gateway #60

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Aatishsharma77
Copy link
Contributor

@Aatishsharma77 Aatishsharma77 commented Apr 5, 2024

what

Fixed count condition for module "kms_key" {}, data "aws_iam_policy_document" "cloudwatch" {} in main.tf
This was causing below error on terraform plan

│ Error: Invalid index
│ 
│   on ../../../main.tf line 543, in module "kms_key":
│  543:   policy              = data.aws_iam_policy_document.cloudwatch[0].json
│     ├────────────────
│     │ data.aws_iam_policy_document.cloudwatch is empty tuple
│ 
│ The given key does not identify an element in this collection value: the collection has no elements.

@Aatishsharma77 Aatishsharma77 changed the title Fix: Enable of kms_key in HTTP Api-Gateway Fix: Error in count condition of HTTP-Api-Gateway Apr 8, 2024
Copy link
Member

@h1manshu98 h1manshu98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants